* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    width: 100%;
    padding: 20px 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 2px;
}

.logo span {
    color: #3498db;
}

.main-content {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

main {
    flex: 1;
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar {
    width: 150px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 0 20px;
    margin: 30px 0;
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 0 15px;
}

.nav-btn {
    padding: 12px 0;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.nav-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-btn.post-btn {
    background-color: #2ecc71;
}

.nav-btn.post-btn:hover {
    background-color: #27ae60;
}

.nav-btn.logout {
    background-color: #e74c3c;
}

.nav-btn.logout:hover {
    background-color: #c0392b;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 1000px;
    justify-content: center;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
    cursor: pointer;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-item:hover .image-overlay {
    transform: translateY(0);
}

.posts-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 1000px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    padding: 15px;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.post-excerpt {
    color: #555;
    line-height: 1.5;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: #2c3e50;
    color: white;
    width: 100%;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column-reverse;
        padding: 0 10px;
    }
    
    .sidebar {
        width: 100%;
        padding: 20px 0;
        margin: 0;
    }
    
    .nav-buttons {
        flex-direction: row;
        justify-content: center;
        padding: 0 20px;
    }
    
    .nav-btn {
        width: auto;
        padding: 10px 20px;
    }
    
    main {
        margin-top: 20px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
}